package com.siashan.unipay4j.ali.splitbill;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 支付宝分账接受方
 *
 * @author siashan
 * @since v1.0.1
 **/
@Data
public class AliReveiver {
    /**
     * 分账类型
     */
    @JSONField(name = "royalty_type")
    private String royaltyType = "transfer";

    /**
     * 收入方账户类型
     */
    @JSONField(name = "trans_in_type")
    private String transInType = "userId";

    /**
     * 收入方账户
     */
    @JSONField(name = "trans_in")
    private String transIn;

    /**
     * 分账金额
     */
    private BigDecimal amount;

    /**
     * 分账描述
     */
    private String desc;
}
